
namespace JTZY.Model.Business
{
    /// <summary>
    /// stock
    /// </summary>
    [SugarTable("stock_flow_item")]
    public class StockFlowItem
    {
        /// <summary>
        /// Id 
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public long Id { get; set; }

        /// <summary>
        /// 单号 
        /// </summary>
        public string SheetNo { get; set; }

        /// <summary>
        /// ProductId 
        /// </summary>
        public int? ProductId { get; set; }

        /// <summary>
        /// 一物一码 
        /// </summary>
        public string SnCode { get; set; }

        /// <summary>
        /// 出入库标志 
        /// </summary>
        public string DbNo { get; set; }

        /// <summary>
        /// 出入库描述 
        /// </summary>
        public string Memo { get; set; }

        /// <summary>
        /// 订单标志 0 销售单  1 采购入库  2退货入库  3 换货出库  4 退货出库 
        /// </summary>
        public int OrderType { get; set; }

        /// <summary>
        /// 业务发生时间 
        /// </summary>
        public DateTime? CreateTime { get; set; }
        /// <summary>
        /// 出入库操作人
        /// </summary>
        public long UserId { get; set; }

        public decimal Price { get; set; }

        [SugarColumn(IsIgnore = true)]
        public string UserName { get; set; }
    }
}